// 查询申请
function doSearchApply() 
{
    let keyword = document.querySelector("input").value
    window.location.href = `index.php?keyword=${keyword}`
}

// 删除申请
function delApply(id)
{
    window.location.href = `index.php?type=delete&id=${id}`
}

function doStatusApply(id, status)
{
    window.location.href = `index.php?type=status&id=${id}&status=${status}`
}

// 添加动物
$('#add-animal').click(function() {
    $('#file-animal').click()
})

// 查询留言
function doSearchMessage() 
{
    let keyword = document.querySelector("input").value
    window.location.href = `message.php?keyword=${keyword}`
}

// 查看留言
function viewMessage(id)
{
    window.location.href = `message.php?type=view&id=${id}`
}

// 删除留言
function delMessage(id)
{
    window.location.href = `message.php?type=delete&id=${id}`
}